import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { BasicLiveComponent } from './basic-live/basic-live.component';
import { BusinessComponent } from './business.component';
import { OwnerChangeComponent } from './owner-change/owner-change.component';
import { StepApplyComponent } from './step-apply/step-apply.component';
import { AppointmentComponent } from './appointment/appointment.component';
import { AppointmentLiComponent } from './appointment/appointment-li/appointment-li.component';
import { EContractComponent } from './e-contract/e-contract.component';

const routes: Routes = [
  { path: 'business', component: BusinessComponent, data: { breadcrumb: '业务办理' },
    children: [
      { path: 'owner-change', component: OwnerChangeComponent, data: { breadcrumb: '过户申请' } },
      { path: 'step-apply', component: StepApplyComponent, data: { breadcrumb: '阶梯人口申报' } },
      { path: 'basic-live', component: BasicLiveComponent, data: { breadcrumb: '低保户水价优惠' } },
      { path: 'appointment', component: AppointmentComponent, data: { breadcrumb: '预约排队' } },
      { path: 'appointment/list', component: AppointmentLiComponent, data: { breadcrumb: '预约排队查询' } },
      { path: 'e-contract', component: EContractComponent, data: { breadcrumb: '电子合同' } },
    ]
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class BusinessRoutingModule { }
